js download File object

86

javascript download file -

$('a#someID').attr({target: '_blank', 
                    href  : 'http://localhost/directory/file.pdf'});

Comments

Submit
0 Comments